import { defineStore } from "pinia";
import { type blindBoxType, store } from "../utils";

export const useBlindBoxAdminStore = defineStore("blindBoxAdmin", {
  state: (): blindBoxType => ({
    url: ""
  }),
  getters: {
    getUrl(state) {
      return state.url;
    }
  },
  actions: {
    setUrl(url: string) {
      console.log("setUrl", url);
      this.url = url;
    }
  }
});
export function useBlindBoxAdminHook() {
  return useBlindBoxAdminStore(store);
}
